package com.aichongbang.acb.mapper;

import com.aichongbang.acb.po.User;
import com.aichongbang.acb.vo.UserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author acb
 * @since 2021-05-27
 */
@Repository("userMapper")
public interface UserMapper extends BaseMapper<User> {

    @ResultMap("userMap")
    User login(@Param("tUsername") String username,@Param("tPassword") String password);

    @ResultMap("getAllUserPermission")
    List<User> getAllUserPermission();

    @ResultMap("addUser")
    Integer addUser(User user);

    @ResultMap("getUserLike")
    List<User> getUserLike(User user);

    @ResultMap("getUserByUsername")
    User getUserByUsername(@Param("tUsername") String tUsername);






}
